Run Time Error 51 Microsoft Word--This task is... (due to mail merges).





Run Time Error 51 Microsoft Word--This task is taking longer than expected. Do you want to continue waiting?



OLE is processing the mail merges too slowly.



Save the Excel worksheet as a Word document and use it as the data source.

    1) Save the Excel worksheet as a Word document:

      a) In Excel, select the 'File' menu and select 'Save As...'.
      b) In the 'Files of Type' drop-down list box, select 'Word Document'.
      c) Enter a filename in the 'File name' drop-down list box.
      d) Choose 'OK'.

    2) Use this file as the data source:
    NOTE: The Excel database MUST be created BEFORE beginning this procedure.

      a) Select the 'Tools' menu and select 'Mail Merge...'. (The Mail Merge Helper dialog box appears.)
      < Mail Merge Helper >
      b) Choose the 'Create' button from the 'Main Document' group.
      < Create button >
      c) Select 'Form Letters' from the 'Main Document' drop-down menu.
      < Main Document drop-down menu >
      d) Choose the 'Active Window' button to use the currently active document as the main document.
      e) Choose the 'Get Data' button from the 'Data Source' group.
      < Data Source drop-down menu >
      f) Select 'Open Data Source...'. (The Open Data Source dialog box appears.)
      < Open Data Source >
      g) Select 'MS Excel Worksheets (*.XLS)' from the 'List Files of Type' list box.
      < List Files of Type >
      h) Select the appropriate drive and directory.
      i) Select the filename from the desired Excel worksheet from the 'File Name' list box.
      j) Choose the 'Open' button. (The dialog box appears.)
      k) Select 'MS Excel Worksheets via DDE (*.XLS)'. (The Microsoft Excel dialog box appears.)
      l) Select 'Entire Spreadsheet' from the 'Named or Cell Range' box.
      m) Choose 'OK'. (The Microsoft Word dialog box appears.)
      n) Choose the 'Edit Main Document' button. (The Database toolbar appears.)
      o) Type the form letter.
      p) Insert merge fields:

        1] Click in the main document where the merge field is to be inserted.
        2] Choose the 'Insert Merge Field' button from the 'Mail Merge' toolbar. (A drop-down list appears.)
        3] Select the desired field to be inserted. (The merge field appears in the main document.)
        NOTE: Word displays merge fields with brackets.
        EXAMPLE: Dear Mr. < < Last Name > >
        4] Repeat steps 2)p)1] through 2)p)3] for each field to be inserted.

      q) Merge the main document and the data source:

        1] Select the 'Tools' menu and select 'Mail Merge...'. (The MailMerge helper dialog box appears.)
        2] Choose the 'Merge...' button from the 'Merge the Data with the Document' group. (The Merge dialog box appears.)
        3] Select 'New Document' from the 'Merge To' drop down list.
        4] Choose the 'Merge' button.
        NOTE: Word creates a new document that contains one complete copy of the main document for each record in the data source, with data from the data source substituted for each merge field. The merged copies are separated from one another by section breaks.


    Knowledge-Pak Desktop Suite (TM) Edition 5

Copyright (c) 1994-1997 by ServiceWare Inc. Subject to the terms set forth in the end-user license agreement. All rights reserved.



2nd Opinion copyright © 1997 by McAfee Associates.
Subject to the terms set forth in the end-user license agreement. All rights reserved.